<?php
class user extends baseentity
{
    public function __construct($args=array())
    {
        parent::__construct($args);
        //$this->addrelation( new hasmany(array('scores' => array('type'=>'score', 'column'=>'userid'))) );
        $this->addrelation( new hasone(array('score' => array('type'=>'score', 'column'=>'userid'))) );
        $this->addrelation( new hasmany(array('customizations' => array('type'=>'customization', 'column'=>'userid'))) );
    }

    protected $name;
    protected $password;

    public function getfields()
    {
        return get_class_vars(__CLASS__);
    }
}
